@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './animation.scss';
@import '../assets/font/iconfont/iconfont.css';

html {
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "PingFang SC", "Microsoft YaHei";
  cursor: default;
}

label {
  font-weight: 700;
}

#app {
  min-width: 1920px;
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
  color: #4CA4FE;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

ul {
  list-style: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

input::-webkit-input-placeholder {
  color: #505961;
}

input::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #505961;
}

input:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #505961;
}

input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #505961;
}

//滚动条样式
//滚动条的宽度
::-webkit-scrollbar {
  width: 4px;
  height: 10px;
}

//滚动条的滑块
::-webkit-scrollbar-thumb {
  background-color: #4dacf9;
  border-radius: 3px;
}

.iframeLoading {
  top: 100px;
}

//main-container全局样式
.app-main {
  min-height: 100%
}

.app-container {
  padding: 20px;
}

//列表头统计背景
.bg-static {
  background: #f7f7f7;
  padding: 10px;

  .card-panel-num {
    color: #205FA9;
  }
}

//列表展开详情
.detail-content p {
  line-height: 25px;
}

.content-analog-chart {
  width: 100%;
  height: 200px;
}

.list-content {
  position: relative;
  margin: 10px;
}

.list-content-detailList {
  position: absolute;
  z-index: 111;
  top: 0;
  background-color: #fff;
  width: 100%;
  height: 100%;
}

//警情推送弹窗class
.el-dialog.dialog-pushAlarm {
  .el-dialog__header {
    padding: 0;
  }

  .el-dialog__header,
  .el-dialog__body,
  .el-dialog__footer {
    background-color: rgba(72, 75, 77, 0.9);
  }

  .dialog-content {
    color: #fff;
    font-size: 18px;
  }

  .el-dialog__footer {
    text-align: right;
    padding: 10px;
  }

  .dialog-title {
    font-size: 20px;
    color: #ff2626 !important;
    font-weight: bold;
  }
}

/*去除百度地图的版权信息提示*/
.anchorBL {
  display: none;
}

//隐藏百度地图路况图标
.maplibTcBtn_deskTop {
  display: none;
}

/* 百度智能匹配输入框 */
.tangram-suggestion-main {
  z-index: 19891999;
}

/* 图片 */
.el-image .image-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(245, 247, 250, .1);
  color: #909399;
  font-size: 14px;
  width: 100%;
  height: 100%;
}

.el-image-viewer__close {
  color: #fff;
}

/* 卡片标题 */
.card-title {
  text-indent: 40px;
  width: 280px;
  height: 32px;
  line-height: 32px;
  background: -webkit-linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  background: -o-linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  background: -moz-linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  background: linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(43, 143, 255, 1);
  border-image: linear-gradient(to right, #2b8fff, rgba(255, 255, 255, 0)) 20 20;
  cursor: pointer;

  .card-title-text {
    font-size: 22px;
    font-family: 'Microsoft YaHei';
    font-weight: bold;
    color: rgba(255, 255, 255, 1);
    background: linear-gradient(0deg, rgba(99, 189, 241, 1) 0%, rgba(70, 153, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.text-align-center {
  text-align: center;
}

/*选色卡（字体颜色、背景颜色、type标签）*/
.color-1 {
  color: #FD5E5E; //红
}

.color-2 {
  color: #FFB32D; //黄
}

.color-3 {
  color: #47CFAD; //绿
}

.color-4 {
  color: #4CA4FE //蓝
}

.color-5 {
  color: #7067E2; //紫
}

.color-6 {
  color: #4FBFE9; //绿
}

.color-7 {
  color: #FA6C4D; //橙红
}

.color-8 {
  color: #8890AB; //灰
}

.bg-color-1 {
  background-color: #FD5E5E;
}

.bg-color-2 {
  background-color: #FFB32D;
}

.bg-color-3 {
  background-color: #47CFAD;
}

.bg-color-4 {
  background-color: #4CA4FE;
}

.bg-color-5 {
  background-color: #7067E2;
}

.bg-color-6 {
  background-color: #4FBFE9;
}

.bg-color-7 {
  background-color: #FA6C4D;
}

.bg-color-8 {
  background-color: #8890AB;
}

//隐藏百度地图路况图标
.maplibTcBtn_deskTop {
  display: none;
}

.tangram-suggestion-main {

  /*  z-index: 19891999; */
  .tangram-suggestion {
    /* border: none !important; */
    background-color: rgba(43, 71, 106, .9) !important;
  }

  .tangram-suggestion table tr td {
    color: #60C2FF !important;
    /*    font-size: 16px;
    height: 36px !important;
    line-height: 36px !important; */
  }

  /* .tangram-suggestion .route-icon{
    background: url(../images/buttons/query22.png) no-repeat !important;
    background-size: 15px !important;
  } */
  .tangram-suggestion-current {
    background-color: rgba(141, 183, 232, .2) !important;
  }
}

// 文本超出省略号
.ell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// 重写loading样式
.reset-loading {
  &.is-fullscreen .el-loading-spinner {
    margin-top: -40px;

    .el-icon-loading {
      font-size: 40px;
    }

    .el-loading-text {
      font-size: 22px;
    }
  }
}

// 重写下拉框样式
.el-popover,
.el-autocomplete-suggestion,
.el-select-dropdown {
  border: none;
  background: rgba(43, 71, 106, .9);

  .el-scrollbar {
    .el-autocomplete-suggestion__list {
      li {
        color: #D6E9FF;

        &:hover {
          color: #60C2FF;
          background: rgba(141, 183, 232, .2);
        }
      }
    }

    .el-select-dropdown__list {
      .el-select-dropdown__item {
        color: #D6E9FF;

        &.selected {
          color: #60C2FF;
        }

        &.hover {
          color: #60C2FF;
          background: rgba(141, 183, 232, .2);
        }
      }
    }

    .el-scrollbar__thumb {
      background: #3575DC;
    }
  }

  .popper__arrow {
    border-bottom-color: rgba(43, 71, 106, .9) !important;

    &::after {
      border-bottom-color: rgba(43, 71, 106, .9) !important;
    }
  }
}

.el-input__inner {
  &::-webkit-input-placeholder {
    color: #60c2ff !important;
  }
}

.el-popover {
  .el-tree {
    background: rgba(43, 71, 106, 0);

    .el-tree-node {
      color: #D6E9FF;

      &.is-current {
        color: #60C2FF;

        &>.el-tree-node__content {
          background: rgba(141, 183, 232, .2);
        }
      }

      &.hover {
        color: #60C2FF;
        background: rgba(141, 183, 232, .2);
      }

      .el-tree-node__content:hover {
        background: rgba(141, 183, 232, .2);
      }
    }
  }
}

.el-image__error,
.el-image__placeholder {
  background: transparent;
}

// 地图标注信息框样式重写
.el-message {
  // &.el-message--3 {
  border: none !important;
  padding: 20px 0 !important;
  // width: 312px;
  min-width: 312px !important;
  background-color: unset !important;
  background: url(../assets/images/fmap/message-bg.png) center center no-repeat;
  background-size: 100% 60px;

  .el-message__icon {
    margin-left: 20px;
    font-size: 20px;
  }

  .el-message__content {
    padding-left: 15px;
    padding-right: 15px;
    font-size: 20px;
    color: #C3DBF6;

    .message-title {
      color: #47A8FF;
    }

    .message-value {
      margin-left: 10px;
    }
  }

  // }
}

// 图片虚化样式
.blur {
  filter: blur(3px);
  filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=10, MakeShadow=false);
  /* IE6~IE9 */
}

// 暂无数据默认样式
.no-image {
  width: 100%;
  height: 100%;
  background: url(../assets/images/default/noimg.png) center center no-repeat;
  background-size: contain;
  background-color: rgba(3, 11, 16, .5);
}

.no-data {
  width: 100%;
  height: 100%;
  background: url(../assets/images/default/nodata.png) center center no-repeat;
}

.no-image2 {
  width: 100%;
  height: 100%;
  background: url(../assets/images/default/noimg2.png) center center no-repeat;
  background-size: 70% 55%;
  background-color: rgba(3, 11, 16, .5);
}
